package com.snail.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.snail.model.pojo.cart.BizRefundRequest;
import com.snail.result.PageResult;

public interface MerchantRefundOrderService {

    /**
     * 分页查询退款申请
     */
    IPage<BizRefundRequest> selectMerchantRefunds(Page<BizRefundRequest> page, BizRefundRequest refundRequest);

    /**
     * 根据ID查询退款申请
     */
    BizRefundRequest getRefundById(Long refundId);

    /**
     * 处理退款申请
     */
    void handleRefund(BizRefundRequest refundRequest);

    void insertRefund(BizRefundRequest refundRequest);

    void updateRefund(BizRefundRequest refundRequest);
}
